package com.mayblackcat.gateway;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.CrossOrigin;


/**
 * @author mayblackcat
 *
 * @EnableDiscoveryClient：开启服务注册发现
 * @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})：排除网关服务的数据源相关配置
 */
@CrossOrigin
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class AmoyGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(AmoyGatewayApplication.class, args);
    }

}
